< previous page page_87 next page >

Page 87
Using the Properties Window
In addition to the ability to move, cut, copy, paste, and delete a group of controls, you can also work with their properties as a group. For example, if you want to change the font of a group of Label controls, simply select the group of controls and access the Font property in the Properties window. When you change the property, all the selected controls are affected. This technique is great for making changes to many controls at once.
Although this method obviously works for a group of controls of the same type (such as a group of labels or a group of text boxes), you might be wondering what happens when your group includes controls of several different types. In this case, Visual Basic displays the properties that are common to all the controls in the group. These properties typically include Top, Left, Height, Width, Font, ForeColor, Visible, and Enabled. You can edit only the properties that are common to all the controls. However, this capability is useful if you want to align the left or top edges of a group of controls. To do so, simply select the group and set the Left property of the group (or the Top property). Figure 4.23 shows a selected group of different controls and the Properties window containing their common properties.
0087-01.jpg
Figure 4.23
Common properties of different
controls can be modified as a group.
Using the Form Editor Toolbar
Editing common properties is not the only way to work with a group of controls. You can also use the Form Editor toolbar (see Figure 4.24). You access it by selecting View, Toolbars, Form Editor. Table 4.2 shows and explains each of the toolbar buttons.
0087-02.jpg
Figure 4.24
The Form Editor toolbar makes
aligning and sizing multiple controls easy.

 
< previous page page_87 next page >